<?php
	/*
	 * File: subscribe_inc_vars.php
	 * Last modification: 20.07.2011
	 * Author(s): kivio.wanderley
	 * 
	 */
?>
	
<?php /** UPPER PHP CODE */	

?>

<?php /** CENTER PHP CODE */
	/* Get all post vars and manipulate as another var */

	/* People vars */

	$sub_first_name = (isset($_POST['sub_first_name'])) ? datab_prepare_string(lang_get('first_name'), $_POST['sub_first_name']) : "NULL"; 
	$sub_last_name = (isset($_POST['sub_last_name'])) ? datab_prepare_string(lang_get('last_name'), $_POST['sub_last_name']) : "NULL";
	$sub_cpf = (isset($_POST['sub_cpf'])) ? datab_prepare_numeric("CPF", $_POST['sub_cpf']) : "NULL";

	/* User vars */
	
	$sub_user = (isset($_POST['sub_user'])) ? strtolower(datab_prepare_string(lang_get('username'), $_POST['sub_user'])) : "NULL";
	$sub_pass = (isset($_POST['sub_pass'])) ? strtolower(datab_prepare_string(lang_get('password'), $_POST['sub_pass'])) : "NULL";
	$sub_access_list = (isset($_POST['access_option_list'])) ? datab_prepare_int(lang_get('access_level'), $_POST['access_option_list']) : "NULL";
	
	/* Option lists and others used by more than one */

	$sub_use_person = (isset($_POST['sub_use_person']) && $_POST['sub_use_person'] == true) ? true : false;
	
	$people_option_list = (isset($_POST['people_option_list'])) ? $_POST['people_option_list'] : "NULL";
	$user_option_list = (isset($_POST['user_option_list'])) ? $_POST['user_option_list'] : "NULL";
	
?>	